package com.alibaba.dubbo.demo;

import java.util.List;

import com.alibaba.dubbo.demo.bean.SysUserinfo;
import com.alibaba.dubbo.demo.bean.PageBean;

public interface SysUserInfoInterface {
	
	/**
	 * 获取所有用户信息
	 */
	public PageBean queryAllUserInfo(PageBean pageBean,int upperid,String usercode,String username);
	public PageBean queryAllUserInfo(PageBean pageBean,String usercode,String username,String deptlist);
	public List<SysUserinfo> queryAllUserInfoList(int upperid,String usercode,String username);
	
	public PageBean queryAllUserDeptInfo(PageBean pageBean,int upperid,String usercode,String username);
	public List<SysUserinfo> queryAllUserDeptInfoList(int upperid,String usercode,String username);
	/**
	 * 根据条件查询用户信息
	 */
	public PageBean queryUserInfoByDept( int deptid);
	public List<SysUserinfo> queryUserInfoListByDept(int deptid);
	
	/**
	 * 根据usercode获取用户信息
	 */
	public SysUserinfo getUserInfoByUserCode(String userCode);
	
	/**
	 * 根据用户名获取用户信息
	 */
	public SysUserinfo getUserInfoByUserName(String userName);
	
	/**
	 * 保存用户信息
	 */
	public boolean saveUserInfo(SysUserinfo userInfo);	
	
	/**
	 * 更新用户信息
	 */
	public boolean updateUserInfo(SysUserinfo userInfo);
	
	/**
	 * 删除用户信息
	 */
	public boolean deleteUserInfo(SysUserinfo userInfo);
	
	
}
